package common

type RateLimitConfig struct {
	Key string
	Qps int
}

func GetAdvertiserFund() RateLimitConfig {
	return RateLimitConfig{
		Key: "TOKEN_BUCKET:OCEAN:/advertiser/fund/get",
		Qps: 200,
	}
}

func GetAdvertiserFundDailyStat() RateLimitConfig {
	return RateLimitConfig{
		Key: "TOKEN_BUCKET:OCEAN:/advertiser/fund/daily-stat",
		Qps: 50,
	}
}

func GetAdvertiserReport() RateLimitConfig {
	return RateLimitConfig{
		Key: "TOKEN_BUCKET:OCEAN:/report/advertiser/get",
		Qps: 200,
	}
}

func GetCustomReport() RateLimitConfig {
	return RateLimitConfig{
		Key: "TOKEN_BUCKET:OCEAN:/report/custom/get",
		Qps: 20, // TODO: 接口齐全时再调整为50
	}
}

func GetAdvertiserReportQC() RateLimitConfig {
	return RateLimitConfig{
		Key: "TOKEN_BUCKET:OCEAN_QC:/report/advertiser/get",
		Qps: 300,
	}
}

func GetMaterialReportQC() RateLimitConfig {
	return RateLimitConfig{
		Key: "TOKEN_BUCKET:OCEAN_QC:/report/material/get",
		Qps: 50,
	}
}
